import Vue from "vue";
import Vuerouter from "vue-router";

Vue.use(Vuerouter);

const routes = [
  {
    path: "/",
    name: "index",
    component: () => import("@/views/index-page.vue"),
  },
  {
    path: "/class",
    name: "class",
    component: () => import("@/views/class-page.vue"),
  },
  {
    path: "/order",
    name: "order",
    component: () => import("@/views/order-page.vue"),
  },
  {
    path: "/my",
    name: "my",
    component: () => import("@/views/my-page.vue"),
  },
];

const router = new Vuerouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});
export default router;
